
<%@ page import="admin.Atuacao" %>
<!doctype html>
<html>
  <head>
    <meta name="layout" content="main">
  <g:set var="entityName" value="${message(code: 'atuacao.label', default: 'Atuacao')}" />
  <title><g:message code="default.list.label" args="[entityName]" /></title>
</head>
<body>
  <div class="nav" role="navigation">
    <ul>
      <li><g:link class="create" action="create"><g:message code="default.new.label" args="[entityName]" /></g:link></li>
    </ul>
  </div>
  <div id="list-atuacao" class="content scaffold-list" role="main">
    <h1><g:message code="default.list.label" args="[entityName]" /></h1>
    <g:if test="${flash.message}">
      <div class="message" role="status">${flash.message}</div>
    </g:if>
    <table>
      <thead>
        <tr>

      <g:sortableColumn property="titulo" title="${message(code: 'atuacao.titulo.label', default: 'Titulo')}" />

      <g:sortableColumn property="descricao" title="${message(code: 'atuacao.descricao.label', default: 'Descricao')}" />

      <g:sortableColumn property="imagem" title="${message(code: 'atuacao.imagem.label', default: 'Imagem')}" />

      </tr>
      </thead>
      <tbody>
      <g:each in="${atuacaoInstanceList}" status="i" var="atuacaoInstance">
        <tr class="${(i % 2) == 0 ? 'even' : 'odd'}">

          <td><g:link action="show" id="${atuacaoInstance.id}">${fieldValue(bean: atuacaoInstance, field: "titulo")}</g:link></td>

        <td>${fieldValue(bean: atuacaoInstance, field: "descricao")}</td>

        <td><img width="200" src="${createLink(controller:'atuacao', action:'view', id:atuacaoInstance.id)}"/></td>

        </tr>
      </g:each>
      </tbody>
    </table>
    <div class="pagination">
      <g:paginate total="${atuacaoInstanceTotal}" />
    </div>
  </div>
</body>
</html>
